package com.zuoye.zuoye5;

public class Student extends Fu {
    private double fraction;

    public void examination() {
        System.out.println("参加考试");
    }

    public Student() {
    }

    public Student(double fraction) {
        this.fraction = fraction;
    }

    public double getFraction() {
        return fraction;
    }

    public void setFraction(double fraction) {
        this.fraction = fraction;
    }

    @Override
    public void showMsg() {
        System.out.println("姓名："+ getName()+","+"年龄："+getAge()+","+"分数："+getFraction());
    }
}
